transformation of trigonometric functions